<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户中心</title>
    <link rel="stylesheet" type="text/css" href="../../static/news/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/news/css/main.css">

</head>
<body class="inframe_body">
<form class="base_info">
    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
    <h3>基本资料</h3>
    <div class="form-group">
        <label>个性签名：</label>
        <input id="signature" type="text" name="desc" class="input_txt" value="我就是我，不一样的烟火">
    </div>
    <div class="form-group">
        <label>用户昵称：</label>
        {% for user in users %}
        <input id="nick_name" type="text" name="username" class="input_txt" value="{{ user.username }}">
        {% endfor %}
    </div>

    <div class="form-group">
        <input type="button" value="保 存" class="input_sub">
    </div>
</form>

<script type="text/javascript" src="/static/news/js/jquery-1.12.4.min.js"></script>
<script>

    $(".input_sub").click(function () {
        $.ajax({
            url: "/user/base",
            type: "get",
            success: function (data) {
                console.log(data)
            },
            error: function (error) {
                console.log("error",error)
            }
        })
    })


</script>


</body>
</html>